xl: implement parsing of cpuid parameter and translate to Xen interface
authorAndre Przywara <andre.przywara@amd.com>
Fri, 1 Oct 2010 16:20:41 +0000 (17:20 +0100)
committerAndre Przywara <andre.przywara@amd.com>
Fri, 1 Oct 2010 16:20:41 +0000 (17:20 +0100)
commit05212276467faa57ce920ecaa1b907acc6378597
treee946dd80a022faf4f2cb2c28597bb1caa4b4a617
parentc458c404da168ee07296b6111bf4500cbf14834a
xl: implement parsing of cpuid parameter and translate to Xen interface

Parses a string enumerating cpuid flags and their behavior.
The syntax is: cpuid = "host,<flagname>=[01xks],..."
Supports:
0: clear this flag
1: set this flag
x: don't care, use the default handling
k: use the host value
s: as k, but keep stable across migrations

For multiple bit flags there have to be numbers passed (hex or dec),
like: family=0x10,model=4

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/xl_cmdimpl.c